import request from '@/utils/request'

// 查询列表信息
export function getDocumentList(query) {
  return request({
    url: '/yijing/references/list',
    method: 'get',
    params: query
  })
}

// 新增
export function addDocument(data) {
  return request({
    url: '/yijing/references',
    method: 'post',
    data: data
  })
}

// 修改
export function updateDocument(data) {
  return request({
    url: '/yijing/references',
    method: 'put',
    data: data
  })
}

// 修改状态
export function changeDocumentStatus(data) {
  return request({
    url: '/yijing/references/updateStatus',
    method: 'put',
    data: data
  })
}